package com.zhu.blog.service;

import com.zhu.blog.dao.QQRepository;
import com.zhu.blog.model.QQInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class QQServiceImpl implements QQService {

    @Autowired
    private QQRepository qqRepository;

    @Override
    public QQInfo findQQUser(String openid) {
        return qqRepository.findQQUser(openid);
    }

    @Override
    public QQInfo save(QQInfo qqInfo) {
        return qqRepository.save(qqInfo);
    }
}
